package com.hdax.search.thread;

public class RunnableTest {
    public static void main(String[] args) {
        Runnable01 runnableTest=new Runnable01();

        System.out.println("线程开始了");
        new Thread(runnableTest).start();
        System.out.println("线程结束了");


    }

    public static class Runnable01 implements Runnable{
        @Override
        public void run() {
            System.out.println("当前线程"+Thread.currentThread().getId());
            int i = 10/2;
            System.out.println("运行结果："+i);
        }
    }
}
